package com.tywh.service.impl;

import java.util.List;

import com.alibaba.fastjson.JSON;
import com.tywh.dao.UserDao;
import com.tywh.pojo.User;
import com.tywh.pojo.UserOr;
import com.tywh.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author xhx
 * @date 2018年4月19日 下午3:26:40
 */
@Service
public class UserServiceImpl implements UserService {
	
	@Autowired
	private UserDao userDao;

	public String getUser(int userId){
		UserOr user = null;
		try {
			user = userDao.getUser(userId);
		}catch (Exception e){
			e.printStackTrace();
		}
		return JSON.toJSONString(user);

	}

}
